﻿Imports System
Imports System.Workflow.ComponentModel.Compiler

Namespace System.Workflow.ComponentModel
    <ActivityValidator(GetType(FieldBindValidator))> _
    Friend NotInheritable Class FieldBind
        Inherits MemberBind
        ' Methods
        Public Sub New()
            Me.path = String.Empty
        End Sub

        Public Sub New(ByVal name As String)
            MyBase.New(name)
            Me.path = String.Empty
        End Sub

        Public Sub New(ByVal name As String, ByVal path As String)
            MyBase.New(name)
            Me.path = String.Empty
            Me.path = path
        End Sub

        Public Overrides Function GetRuntimeValue(ByVal activity As Activity) As Object
            Throw New NotImplementedException
        End Function

        Public Overrides Function GetRuntimeValue(ByVal activity As Activity, ByVal targetType As Type) As Object
            Throw New NotImplementedException
        End Function

        Protected Overrides Sub OnRuntimeInitialized(ByVal activity As Activity)
            Throw New NotImplementedException
        End Sub

        Public Overrides Sub SetRuntimeValue(ByVal activity As Activity, ByVal value As Object)
            Throw New NotImplementedException
        End Sub


        ' Properties
        Public Property Path As String
            Get
                Return Me.path
            End Get
            Set(ByVal value As String)
                If Not MyBase.designMode Then
                    Throw New InvalidOperationException(SR.GetString("Error_CanNotChangeAtRuntime"))
                End If
                Me.path = value
            End Set
        End Property


        ' Fields
        Private path As String
    End Class
End Namespace

